<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<h3>商品列表</h3>
${msg }

<h3>图书列表</h3>
<s:iterator var="b" value="books">
  ${b}==<s:property value="b"/><br/>
</s:iterator>
<h3>用户对象列表</h3>
<s:iterator var="u" value="#attr.userList">
${u.username }==${u.password }==||
==<s:property value="username"/>
==<s:property value="password"/><br/>
</s:iterator>
<h3>访问Map用户对象集合</h3>
<s:iterator var="user" value="#attr.map">
${user.key }==${user.value.username }==${user.value.password }==标签==
<s:property value="key" />==<s:property value="value.username"/><br/>
</s:iterator>

<h3>访问Map 嵌套Set集合</h3>
<!-- 大分类==小分类  -->
<s:iterator var="d" value="#attr.deptMap">
部门：${d.key.dname} <br/>
<s:iterator var="emp" value="value">
<s:property value="empNo"/>==
<s:property value="ename"/>==
<s:property value="job"/><br/>
</s:iterator>
</s:iterator>

</body>
</html>